package org.csu.jpetstore_front.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("lineitem")
public class LineItem{

  @TableId(value = "orderid",type = IdType.NONE)
  private int orderId;
  @TableField(value = "linenum")
  private int lineNumber;
  @TableField(value = "itemid")
  private String itemId;
  private int quantity;
  @TableField(value = "unitprice")
  private BigDecimal unitPrice;

}
